package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the POSITION_CHANGE database table.
 * 
 */
@Entity
@Table(name="POSITION_CHANGE")
@NamedQuery(name="PositionChange.findAll", query="SELECT p FROM PositionChange p")
public class PositionChange implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="POSITION_CHANGE_POBDID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="POSITION_CHANGE_POBDID_GENERATOR")
	@Column(name="PO_BD_ID")
	private long poBdId;

	@Column(name="INITIAL_POSITION_ID")
	private BigDecimal initialPositionId;

	@Column(name="PO_EXECUTOR")
	private String poExecutor;

	@Column(name="VARIATION_POSITION_DATE")
	private Timestamp variationPositionDate;

	@Column(name="VARIATION_POSITION_ID")
	private BigDecimal variationPositionId;

	//bi-directional many-to-one association to Duty
	@ManyToOne
	@JoinColumn(name="DUTY_ID")
	private Duty duty;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public PositionChange() {
	}

	public long getPoBdId() {
		return this.poBdId;
	}

	public void setPoBdId(long poBdId) {
		this.poBdId = poBdId;
	}

	public BigDecimal getInitialPositionId() {
		return this.initialPositionId;
	}

	public void setInitialPositionId(BigDecimal initialPositionId) {
		this.initialPositionId = initialPositionId;
	}

	public String getPoExecutor() {
		return this.poExecutor;
	}

	public void setPoExecutor(String poExecutor) {
		this.poExecutor = poExecutor;
	}

	public Timestamp getVariationPositionDate() {
		return this.variationPositionDate;
	}

	public void setVariationPositionDate(Timestamp variationPositionDate) {
		this.variationPositionDate = variationPositionDate;
	}

	public BigDecimal getVariationPositionId() {
		return this.variationPositionId;
	}

	public void setVariationPositionId(BigDecimal variationPositionId) {
		this.variationPositionId = variationPositionId;
	}

	public Duty getDuty() {
		return this.duty;
	}

	public void setDuty(Duty duty) {
		this.duty = duty;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}